package com.zpark.i_feign;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.zpark.pojo.User;
import com.zpark.util.ResultJsonUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @PackageName: com.zpark.i_feign
 * @ClassName: IUserFeign
 * @Description:
 * @author: RZS
 * @date: 2024/4/18  17:40
 */
@FeignClient(value = "hystrix-server")
public interface IUserFeign {

    @GetMapping("/user/all")
    ResultJsonUtil<List<User>> getAll();

    @GetMapping("/user/test")
    ResultJsonUtil<Void> test();

}
